<div class="topimg">
  <img src="/images/advanced_search.gif" align="center" />
</div>
<div class="search">
  <h3>产品搜索</h3>
  <% form_tag result_procate_products_path do -%>
    <p><label>产品名称：</label><input type="text" name="product_name"/></p>
    <p><label>产品品牌：</label><%= select("product_attribute_values[1]","value_int",get_list_items_by_ids(2).collect{|p| [p.display_name,p.id]},:include_blank=>"请选择品牌")%></p>
    <p><label>价格区间：</label><input type="text" name="scope1" class="short"/>-<input type="text" name="scope2" class="short"/></p>
    <p><label>产品功率：</label>
    <span>
      <% get_list_items_by_ids(3).each do |item| %>
        <%= radio_button "product_attribute_values[2]","value_int",item.id %><%= item.display_name %>&nbsp;
      <% end %></span>
    </p>
    <p><label>变频方式：</label> <span>
      <% get_list_items_by_ids(11).each do |item| %>
       <%= radio_button "product_attribute_values[8]","value_int",item.id %><%= item.display_name %>&nbsp;
      <% end %></span>
    </p>
     <p><label>产品颜色：</label> <span>
      <% get_list_items_by_ids(9).each do |item| %>
       <%= radio_button "product_attribute_values[18]","value_int",item.id %><%= item.display_name %>&nbsp;
      <% end %></span>
    </p>
     <p><label>产品型号：</label><span>
      <% get_list_items_by_ids(1).each do |item| %>
        <%= radio_button "product_attribute_values[16]","value_int",item.id %><%= item.display_name %>&nbsp;
      <% end %></span>
    </p>
    <p><label>能效等级：</label>  <span>
      <% get_list_items_by_ids(6).each do |item| %>
      <%= radio_button "product_attribute_values[13]","value_int",item.id %><%= item.display_name %>&nbsp;
      <% end %></span>
    </p>
    <p><label>致冷面积：</label><%= text_field "product_attribute_values[6]","value_str" %></p>
    <p><label>制热面积：</label><%= text_field "product_attribute_values[7]","value_str" %></p>
 
    

    <p align="center" ><%= image_submit_tag 'search.png' %></p>
  <% end -%>

</div>
<%=render :partial=>"sub_menu",:object=>2 %>